home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Announcer / PostponedEarBase.cp < prev    next >
Encoding:
Text File  |  1997-06-28  |  551 b   |  33 lines  |  [TEXT/CWIE]

  1. // PostponedEarBase.cp
  2.  
  3. #ifndef PostponedEarBase_h
  4. #include "PostponedEarBase.h"
  5. #endif
  6.  
  7. PostponedEarBase::PostponedEarBase( const Method& method )
  8.   : scheduler( method )
  9.   {
  10.   }
  11.  
  12. PostponedEarBase::PostponedEarBase( const Method& method,
  13.                                           const Announcer& announcer )
  14.   : EarBase( announcer ),
  15.      scheduler( method )
  16.   {
  17.   }
  18.  
  19. PostponedEarBase::~PostponedEarBase()
  20.   {
  21.   }
  22.  
  23. void PostponedEarBase::HearAnnouncement()
  24.   {
  25.     if ( !scheduler.Pending() )
  26.         scheduler.Schedule();
  27.   }
  28.  
  29. void PostponedEarBase::HearDestruction()
  30.   {
  31.     Assert( 0 );
  32.   }
  33.